#include <map>
#include <string>

using namespace std;

#define HTTP_METHOD_GET "GET"
#define HTTP_METHOD_POST "POST"

#define HTTP_STATUS_OK   200
#define HTTP_STATUS_NOT_FOUND   404
#define HTTP_STATUS_INTERNAL_SERVER_ERROR  500


typedef struct HttpRequest {
    string version;
    string method;
    map<string, string> query;
    string path;
    map<string, string> headers;
    string body;
} HttpRequest;


// HttpRequest* parse_request(int fd);